package com.ruoyi.system.domain.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class WeChatPayRequest implements Serializable {

    private String appid;

    @JsonProperty("mchid")
    private String mchId;

    private String description;

    @JsonProperty("out_trade_no")
    private String outTradeNo;

    @JsonProperty("notify_url")
    private String notifyUrl;

    private WeChatPayAmountRequest amount;

    private WeChatPayPayerRequest payer;

    @Data
    public static class WeChatPayAmountRequest {

        private Integer total;

    }

    @Data
    public static class WeChatPayPayerRequest {

        @JsonProperty("openid")
        private String openId;
    }
}
